import request from '@/utils/request'

// 查询顾客财产登记(外委)记录列表
export function listPropertyRegistrationRecord(query) {
  return request({
    url: '/erp/propertyRegistrationRecord/list',
    method: 'get',
    params: query
  })
}

// 查询顾客财产登记(外委)记录详细
export function getPropertyRegistrationRecord(id) {
  return request({
    url: '/erp/propertyRegistrationRecord/' + id,
    method: 'get'
  })
}

// 新增顾客财产登记(外委)记录
export function addPropertyRegistrationRecord(data) {
  return request({
    url: '/erp/propertyRegistrationRecord',
    method: 'post',
    data: data
  })
}

// 修改顾客财产登记(外委)记录
export function updatePropertyRegistrationRecord(data) {
  return request({
    url: '/erp/propertyRegistrationRecord',
    method: 'put',
    data: data
  })
}

// 删除顾客财产登记(外委)记录
export function delPropertyRegistrationRecord(id) {
  return request({
    url: '/erp/propertyRegistrationRecord/' + id,
    method: 'delete'
  })
}

// 提交
export function submitRegistrationRecord(data) {
  return request({
    url: '/erp/propertyRegistrationRecord/submitRegistrationRecord',
    method: 'post',
    data
  })
}

// 审批
export function approverRepair(data) {
  return request({
    url: '/erp/propertyRegistrationRecord/approverRepair',
    method: 'post',
    data
  })
}
// 接收

export function receive(data) {
  return request({
    url: '/erp/propertyRegistrationOuter/receive',
    method: 'post',
    data
  })
}


// 发放

export function grant(data) {
  return request({
    url: '/erp/propertyRegistrationOuter/grant',
    method: 'post',
    data
  })
}


// 上传合格证

export function uploadCertificate(data) {
  return request({
    url: '/erp/propertyRegistrationOuter/uploadCertificate',
    method: 'post',
    data
  })
}







